<?php
$dbconnect = DBconnect::getInstance();
function displayAllManagers(){
	$dbconnect = DBconnect::getInstance();
	$query = $dbconnect->selectAllManagers();
	while($managers = mysql_fetch_assoc($query)){
		$name = $managers['man_name'];
		echo "<option value='$name'>$name</option>";
	}
}

if(isset($_POST['delete'])){
	if($_POST['allmanagers'] != null){
		$dbconnect->deleteTeam($_POST['allmanagers']);
		$dbconnect->deleteManager($_POST['allmanagers']);
	}
}

?>